const path = require("path");
const { merge } = require("webpack-merge");
const common = require("./webpack.common");
const CssMinimizerPlugin = require("css-minimizer-webpack-plugin");

module.exports = merge(common, {
  mode: "production",
  optimization: {
    minimizer: [new CssMinimizerPlugin({})],
    //     splitChunks: {
    //       cacheGroups: {
    //         styles: {
    //           name: "styles",
    //           test: /\.css$/,
    //           chunks: "all",
    //           enforce: true,
    //         },
    //       },
    //     },
  },
});
